﻿using System;
using System.ComponentModel;

namespace ScreensInterfaces
{
    public class ScreenChoice : INotifyPropertyChanged
    {
        private ScreenImage image = new ScreenImage();
        private string label = "";
        private string command = "";
        private string subCommand = "";

        public ScreenImage Image
        {
            get
            {
                return image;
            }
            set
            {
                image = value;
                OnPropertyChanged("Image");
            }
        }

        public string Label
        {
            get
            {
                return label;
            }
            set
            {
                label = value;
                OnPropertyChanged("Label");
            }
        }

        public string Command
        {
            get
            {
                return command;
            }
            set
            {
                command = value;
                OnPropertyChanged("Command");
            }
        }

        public string SubCommand
        {
            get
            {
                return subCommand;
            }
            set
            {
                subCommand = value;
                OnPropertyChanged("SubCommand");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
